#pragma once

#include "Common/Common.h"

#include <QObject>

class Handler : public QObject
{
    Q_OBJECT
public:
    explicit Handler(QObject *parent = nullptr) {
        Q_UNUSED(parent);
    };

    // 获取精灵列表
    virtual void GetSpriteListFromDataStream(Album &album, QDataStream *streamPtr) = 0;

    /// <summary>
    ///     从数据中获得图片
    /// </summary>
    virtual QImage GetSpriteImg(const Album &album, const SpriteStruct &sprite) = 0;
};
